import request from '@/utils/request'

/**流程定义**/
export function definitionList(params) {
    return request({
        url: '/definition/list',
        method: 'post',
        data:params
    })
}
//激活,挂起
export function definitionSuspend(params) {
    return request({
        url: '/definition/suspendOrActiveApply',
        method: 'post',
        data:params
    })
}
//转型
export function definitionConvert(params) {
    return request({
        url: '/definition/convert2Model',
        method: 'post',
        data:params
    })
}
//删除
export function definitionDel(params) {
    return request({
        url: '/definition/remove',
        method: 'post',
        data:params
    })
}
//
export function definitionRead(params) {
    return request({
        url: '/definition/readResource',
        method: 'get',
        params
    })
}


/**流程模型**/
export function modelerList(params) {
    return request({
        url: '/modeler/list',
        method: 'post',
        data:params
    })
}
//新增
export function modelerCreate(params) {
    return request({
        url: '/modeler/create',
        method: 'post',
        data:params
    })
}
//部署
export function modelerDeploy(id) {
    return request({
        url: '/modeler/deploy/'+id,
        method: 'post'
    })
}
//导出

//删除
export function modelerDel(params) {
    return request({
        url: '/modeler/remove',
        method: 'post',
        data:params
    })
}